//int转时间戳
function form_time(a) {
    var myDate = new Date(parseInt(a) * 1000);
    var datestr = "";
    datestr = myDate.getFullYear();    //获取完整的年份(4位,1970-????)
    datestr = datestr + "-" + (myDate.getMonth() + 1);       //获取当前月份(0-11,0代表1月)
    datestr = datestr + "-" + myDate.getDate();        //获取当前日(1-31)
    datestr = datestr + " " + (myDate.getHours() < 10 ? "0" : "") + myDate.getHours();        //获取当前日(1-31)
    datestr = datestr + ":" + (myDate.getMinutes() < 10 ? "0" : "") + myDate.getMinutes();        //获取当前日(1-31)
    return datestr;
}